public class StartRateException extends OperationFailureException
StartRateOp operation fails during session-based charging.
Such service operation request may fail for several reasons:
DUPLICATE_SESSIONINVALID_DEFAULT_RESOLUTIONINVALID_RESULT_TYPEINVALID_SESSION_IDINVALID_TTLNOT_ENOUGH_SPACENote
Refer to the Field Detail section for more information about a particular code and to determine the appropriate error handling in your client application.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="startRateFault">
<xs:complexType>
<xs:attribute name="reason" type="StartRateFaultType"/>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element><xs:simpleType name="StartRateFaultType">
<xs:restriction base="xs:string">
<xs:enumeration value="invalidSessionID"/>
<xs:enumeration value="invalidTTL"/>
<xs:enumeration value="invalidDefaultResolution"/>
<xs:enumeration value="invalidResultType"/>
<xs:enumeration value="duplicateSession"/>
<xs:enumeration value="notEnoughSpace"/>
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static int |
DUPLICATE_SESSION
The session ID is already used.
|
static int |
INVALID_DEFAULT_RESOLUTION
The resolution is not valid.
|
static int |
INVALID_RESULT_TYPE
The result type is not a valid one.
|
static int |
INVALID_SESSION_ID
0: The session is not valid or is missing for example.
|
static int |
INVALID_TTL
1: The value of the time to live is not set or a negative one.
|
static int |
NOT_ENOUGH_SPACE
5: There is not enough space on to store a session.
|
| Constructor and Description |
|---|
StartRateException()
Constructs an empty start exception.
|
StartRateException(int reason,
String message)
Constructs an start exception with a reason and a message.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
String |
getMessage() |
String |
getName() |
int |
getReason()
Gets the reason (numeric code).
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setReason(int reason)
Sets the reason.
|
String |
toString() |
getOperandReferenceaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic static final int INVALID_SESSION_ID
public static final int INVALID_TTL
public static final int INVALID_DEFAULT_RESOLUTION
public static final int INVALID_RESULT_TYPE
public static final int DUPLICATE_SESSION
public static final int NOT_ENOUGH_SPACE
public StartRateException()
public StartRateException(int reason,
String message)
reason - The reason codemessage - The detailed messagepublic String getName()
public void setReason(int reason)
reason - The reason to set uppublic int getReason()
public String getMessage()
getMessage in class Throwablepublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(String cData)
XMLMarshallablecData - The character data to be addedpublic void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.tagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallableoutput - The XML output to marshal the object into